package imoney.client.rpc;

import imoney.shared.exception.NoSuchPersonException;
import imoney.shared.exception.PositionOutOfDateException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("../service/greet") 
public interface GreetingService extends RemoteService {
	
	/**
	 * Greets the server. In return the server will send back the pseudo of the person
	 * logged in for this session. NOTE : if the pseudo is null, the caller of this method should
	 * send a redirect to a login page.
	 * @throws PositionOutOfDateException 
	 */
	String greetServer(String index) throws NoSuchPersonException, PositionOutOfDateException;
	
}
